package com.wudi.estate.service.impl.homemanage;

import com.wudi.estate.bean.homemanage.Homes;
import com.wudi.estate.mapper.homemanage.HomesMapper;
import com.wudi.estate.service.homemanage.HomesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class HomesServiceImpl implements HomesService {
    @Autowired
    private HomesMapper homesMapper;

    @Override
    public List<Homes> selectList() throws Exception {
        return homesMapper.selectList(null);
    }

    @Override
    public Homes selectById(long id) throws Exception {
        return homesMapper.selectById(id);
    }

    @Override
    public void update(Homes homes) throws Exception {
        homesMapper.updateById(homes);
    }

    @Override
    public void insert(Homes homes) throws Exception {
        homesMapper.insert(homes);
    }
}
